//
//  JDKeplerManager.m
//  quxiangtao
//
//  Created by HHuajiang on 2018/12/6.
//  Copyright © 2018 shanhaijin. All rights reserved.
//

#import "JDKeplerManager.h"
#import <JDKeplerSDK/JDKeplerSDK.h>
@implementation JDKeplerManager

+ (instancetype)sharedManager {
    static dispatch_once_t onceToken;
    static JDKeplerManager *instance;
    dispatch_once(&onceToken, ^{
        instance = [[JDKeplerManager alloc] init];
    });
    return instance;
}

- (void)jumpToTheHomePageController:(UIViewController *)controller {
     [[KeplerApiManager sharedKPService] openKeplerPageWithURL:@"http://m.jd.com" sourceController:controller jumpType:2 userInfo:nil];
}

- (void)jumpToTheShoppingCartPageController:(UIViewController *)controller{
    [[KeplerApiManager sharedKPService] openShoppingCart:controller jumpType:2 userInfo:nil];
}

- (void)jumpToTheOrderListPageController:(UIViewController *)controller {
    [[KeplerApiManager sharedKPService] openOrderList:controller jumpType:2 userInfo:nil];
}

- (void)jumpToTheNavigationCategoriesPageController:(UIViewController *)controller {
    [[KeplerApiManager sharedKPService] openNavigationPage:controller jumpType:2 userInfo:nil];
}

- (void)jumpJDUrl:(NSString *)url Controller:(UIViewController *)controller {
    [[KeplerApiManager sharedKPService] openKeplerPageWithURL:url sourceController:controller jumpType:2 userInfo:nil];
}

- (void)jumpToTheProductDetailsPageSkuid:(NSString *)skuid Controller:(UIViewController *)controller {
     [[KeplerApiManager sharedKPService] openItemDetailWithSKU:skuid sourceController:controller jumpType:2 userInfo:nil];
}

- (void)jumpToTheSearchResult:(NSString *)searchKey SearchPageController:(UIViewController *)controller {
    [[KeplerApiManager sharedKPService] openSearchResult:searchKey sourceController:controller jumpType:2 userInfo:nil];
}

//获取用户信息
- (NSDictionary *)customParams
{
    NSMutableDictionary *tempDict = [[NSMutableDictionary alloc] init];
    return tempDict;
}

@end
